<?php

namespace IYUU\sdk\CoolQ;

/**
 * 中间件接口
 * Interface MiddlewareInterface
 * @package IYUU\sdk\CoolQ
 */
interface MiddlewareInterface
{
    /**
     * @param Context $context
     * @param callable $next
     * @return array
     */
    public function process(Context $context, callable $next): array;
}
